#pragma once
#include <osgEarthUtil/EarthManipulator>
#include <osgEarthAnnotation/LabelNode>
#include <osg/ref_ptr>
#include <osgEarth/TerrainEngineNode>
#include <osg/Node>
#include <osgEarth/ElevationQuery>
#include <osgEarth/Map>
#include <osgEarth/Cache>
#include <glibmm.h>
#include <osgViewer/Viewer>
#include "mainView.h"
class pickearth :
	public osgEarth::Util::EarthManipulator
{
private:


	osg::ref_ptr<osgEarth::Map >  map;
	osg::NodePath    _path;
	osgEarth::ElevationQuery   _query;
	BJ::mainView	  *mainview;


public:

	pickearth(osgEarth::TerrainEngineNode* terrainnode,osgEarth::Map *map,BJ::mainView *mainviewer);
	virtual bool handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us);

protected:
	~pickearth(void);
};
